package com.ruoyi.fjtseac.domain.vo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import javax.validation.constraints.Pattern;
import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 
 * </p>
 *
 * @author zzl
 * @since 2022-07-06
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="Volunteer对象", description="")
public class VolunteerVo implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "志愿者编号")
    private Long volunteerId;

    @Pattern(regexp = "[\\u4E00-\\u9FA5]{1,80}",message = "名字必须为汉字，且不存在空格")
    @ApiModelProperty(value = "姓名")
    private String name;

    @Pattern(regexp = "[男]|[女]",message = "请输入正确性别（男/女）")
    @ApiModelProperty(value = "性别")
    private String gender;

    @Pattern(regexp = "^134[0-8]\\d{7}$|^13[^4]\\d{8}$|^14[^2,3]\\d{8}$|^15[^4]\\d{8}$|^16[2,5,6,7]\\d{8}$|^17[0-8]\\d{8}$|^18[\\d]{9}$|^19[^4]\\d{8}$", message = "请输入正确号码")
    @ApiModelProperty(value = "手机号码")
    private String phone;

    @ApiModelProperty(value = "加入日期")
    private Date joinTime;

}
